package com.vincent.jvmtest.common;

/**
 * @author vincent
 * @date 2019/3/3
 * @description
 */
public class CacheDemo {
    public static void main(String[] args) throws InterruptedException {
        ExpiredCache.getInstance().add("k1","v1", 10 * 1000);
        ExpiredCache.getInstance().add("k2","v2", 10 * 1000);
        Thread.sleep(1000);
        ExpiredCache.getInstance().add("k3","v3", 10 * 1000);
        ExpiredCache.getInstance().add("k4","v4", 10 * 1000);
    }
}
